﻿﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>用户</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <script src="../../../../scripts/boot.js" type="text/javascript"></script>
    <script src="../../../../res/third-party/ajaxfileupload/ajaxfileupload.js" type="text/javascript"></script>
	<script src="../../../../../js/dateUtil.js" type="text/javascript"></script>
    <style type="text/css">
        html, body {
            padding:0;
            margin:0;
            border:0;
            height:100%;
            line-height: 0;
            overflow:hidden;
        }
    </style>
</head>
<body>    
    <form id="form1" method="post">
        <!--按钮-->
        <div style="text-align:left;padding:5px 10px;border-bottom:1px solid #aed0ea;margin-bottom:10px;">
            <a class="mini-button" onclick="onOk" style="width:60px;">保存</a>
            <a class="mini-button" onclick="onCancel" style="width:60px;">取消</a>
        </div>
        <!--表单-->
        <input name="userId" class="mini-hidden"/>
        <div style="padding-left:11px;padding-bottom:5px;">
            <table style="table-layout:fixed;">
                <tr>
                 	<td style="width:100px;text-align:right"><span style='color:red;vertical-align: middle;'> * </span>账号编码：</td>
                    <td style="width:150px;">    
                    	<!-- onBlur='removeOnly' -->
                        <input id='userName' name="userName" class="mini-textbox" onvalidation="onNotSpaceValidation" onBlur="findByUserName" />
                    </td>
                    <td style="width:100px;text-align:right"><span style='color:red;vertical-align: middle;'> * </span>账号名称：</td>
                    <td style="width:150px;"> 
                        <input id='userCode' name="userCode" class="mini-textbox"
                        autocomplete="off"  onvalidation="onNotSpaceValidation" />
                        <!-- readonly -->
                    </td>
                    <td style="width:100px;text-align:right"><span style='color:red;vertical-align: middle;'> * </span>账号状态：</td>
                    <td style="width:150px;">
                        <input name="userState"  class="mini-combobox" valueField="code" textField="text"
                               data="states" style="width:100%;" emptyText="请选择状态" onvalidation="onNotSpaceValidation"/>
                    </td>
                </tr>
                <tr>
                	<td style="width:100px;text-align:right"><span style='color:red;vertical-align: middle;'> * </span>密码：</td>
                    <td style="width:150px;">
                        <input id='password1' name="password" class="mini-password" 
                       autocomplete='new-password2' onvalidation="onNotSpaceValidation"/>
                        <!-- onclick="onReset()"  重置-->
                        <!-- <a id="resetBtn" class="mini-button" style="width:50px;" onclick="onReset()" enabled="false">重置</a> -->
                    </td>
                    <td id='okText' style="width:100px;text-align:right"><span style='color:red;vertical-align: middle;'> * </span>确认密码：</td>
                    <!--<td field="loginDate" width="100" headerAlign="center" align="center" dateFormat="yyyy-MM-dd" >登陆时间</td>-->
                    <!--<td field="createDate" width="100" headerAlign="center" align="center" dateFormat="yyyy-MM-dd" >创建时间</td>-->
                    <!--<td field="updateDate" width="100" headerAlign="center" align="center" dateFormat="yyyy-MM-dd" >修改时间</td>-->
                    <td id='okPassword' style="width:150px;">
                        <input  name="okPassword" class="mini-password" onblur='onPasswordBlur' onvalidation="onConfirmValidation"/>
                        <!-- <a id="okBtn" class="mini-button" style="width:50px;" onclick="onReset()" enabled="false">确认</a> -->
                    </td>
                    <!--<td style="width:100px;text-align:right">人员ID：</td>- -->
                    <!--<td style="width:150px;">-->
                        <!--&lt;!&ndash;  <input name="userCode" class="mini-textbox"/> &ndash;&gt;-->
                        <!--<input id="PersonnelFiles_id" name="personCode" class="mini-buttonedit" />-->
                    <!--</td>-->
                    <!--<td style="width:150px;">-->
                        <!--<input id="roleId" name="role.roleId" class="mini-buttonedit" onbuttonclick="changeRole"/>-->
                        <!--&lt;!&ndash; <input name="role.roleId" class="mini-combobox" valueField="roleId" textField="roleName"-->
                               <!--onvaluechanged="onUserChanged"-->
                               <!--emptyText="请选择角色"/> &ndash;&gt;-->
                    <!--</td>-->
                </tr>

                
                <!--<tr>-->
                    <!--<td style="width:100px;text-align:right">创建时间：</td>-->
                    <!--<td >-->
                        <!--<input name="createDate" class="mini-textbox" readonly/>-->
                    <!--</td>-->
                <!--</tr>-->
            </table>
        </div>
        <fieldset style="border:solid 1px #aaa;padding:3px;margin-top:10px">
            <legend >对应人员</legend>
            <div style="padding:5px;">
		        <table>
			        <tr>
	                 	<td style="width:100px;text-align:right">人员编码：</td>-
	                    <td style="width:150px;">
	                       <!--  <input name="userCode" class="mini-textbox"/> -->
	                       <input id="PersonnelFiles_code" name="personCode" class="mini-buttonedit" onbuttonclick="changePerson"/>
	                    </td>
	                    <td style="width:100px;text-align:right">人员姓名：</td>
	                    <td style="width:150px;">
	                        <input id="PersonnelFiles_name" name="uName" class="mini-textbox"/>
	                    </td>
                        <td style="width:80px;text-align:right">分配角色↓</td>
	                </tr>
		            <!--<tr>-->
	                    <!--<td style="width:100px;text-align:right">电话：</td>-->
	                    <!--<td >-->
	                        <!--<input id="user_phone" name="user_phone" class="mini-textbox"/>-->
	                    <!--</td>-->
	                    <!--<td style="width:100px;text-align:right">邮箱：</td>-->
	                    <!--<td >-->
	                        <!--<input id="user_email" name="user_email" class="mini-textbox"/>-->
	                    <!--</td>-->
                	<!--</tr>-->
	                <!--<tr>-->
	                    <!--<td style="width:100px;text-align:right">所属公司：</td>-->
	                    <!--<td >-->
	                        <!--<input id="user_company" name="user_company" class="mini-textbox"/>-->
	                    <!--</td>-->
	                    <!--<td style="width:100px;text-align:right">所属部门：</td>-->
	                    <!--<td >-->
	                        <!--<input id="user_department" name="user_department" class="mini-textbox"/>-->
	                    <!--</td>-->
	                <!--</tr>-->
		        </table>            
            </div>
        </fieldset>

    </form>
    <div style="text-align:left;padding:5px 10px;border-bottom:1px solid #aed0ea;margin-bottom:10px;">

        <!--数据表-->
        <div id="datagrid1" class="mini-datagrid" style="width:100%;height:70%;" multiSelect="true"
             showPager='false' allowUnselect='true'>
            <div property="columns">
                <!--<div type="indexcolumn"></div>-->
                <div type="checkcolumn" ></div>
                <div type="indexcolumn" headerAlign="center">序号</div>
                <div field="roleId" headerAlign="center" align="center">角色ID</div>
                <div field="roleCode" headerAlign="center" align="center">角色编码</div>
                <div field="roleName" width="120" headerAlign="center" align="center">角色名称</div>
            </div>
        </div>
    </div>
    
    <script src="alertjs/userWin.js"></script>
</body>
</html>
